package com.bestcem.xm.user.service.impl;

import com.bestcem.xm.user.mq.message.organization.OrgCreateMessage;
import com.bestcem.xm.user.service.UserMessageReceiverService;
import com.bestcem.xm.user.service.UserMqConsumeService;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@RequiredArgsConstructor
public class UserMessageReceiverServiceImpl implements UserMessageReceiverService {
    private @NonNull UserMqConsumeService userMqConsumeService;

    @Override
    public void orgCreated(OrgCreateMessage msg){
        userMqConsumeService.orgCreateMessageListener(msg);
    }
}
